home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.object,comp.lang.c++,comp.lang.java
- Path: CERN.ch!news
- From: kruse@cms1.cern.ch (Andres Kruse)
- Subject: Re: Java: What's the Big Deal?
- In-Reply-To: "Erik P. DeBenedictis"'s message of Sat, 16 Mar 1996 19:08:41
- -0800
- X-Nntp-Posting-Host: cms1.cern.ch
- Message-ID: <kr1wx4f3gqk.fsf@cms1.cern.ch>
- Followup-To: comp.object,comp.lang.c++,comp.lang.java
- Sender: kruse@cms1.cern.ch
- Organization: CERN Geneva
- X-Newsreader: Gnus v5.1
- References: <4i40ik$9dt@news4.digex.net> <milodDo5yDE.H8B@netcom.com>
- <1996Mar14.124235.9729@friend.kastle.com> <4iane3$dr4@news4.digex.net>
- <4iaqoh$582@engnews2.Eng.Sun.COM>
- <MARKT.96Mar15150513@atlas.harlqn.co.uk> <314B8239.247D@netalive.com>
- Date: Wed, 20 Mar 1996 15:51:31 GMT
-
- In article <314B8239.247D@netalive.com> "Erik P. DeBenedictis" <erikd@netalive.com> writes:
-
- Mark Tillotson wrote:
- > I agree _totally_, but this world view is quite understandable given
- > the wording in the Java white paper from Sun...
-
- I have another observation on this. Remember how Java's lack of pointer
- is supposed to make it secure? The rationale is that the ability to
- cast an integer into a pointer permits "wild" memory references that could
- be used to do some damage.
-
- They must have been thinking about Windows 3.1 because all other O. S.'s
- protect against wild memory references in other ways.
-
- Erik DeBenedictis
-
- eh.. what? The only protection you usually get is that your process
- is not able/allowed to mess around with other processes' memory.
- This protection is there so that your code cannot crash the system
- and can also not be used to get unprivileged access to resources.
-
- But: The whole mess you can do with pointers in your own data
- address space is not at all adressed by this. And there indeed
- a lack of pointers makes your code secure, where "secure" means
- that you protect parts of your code against other parts, or if
- you wish you guarantee privacy to every object: It can only
- communicate to the outside world via documented channels,
- i.e. method invocation of other objects or other public
- stuff.
-
- Andres
- --
- ------------------------------------------------------------
- Andres Kruse | CERN Geneva, ECP division, CMD (DAQ for CMS)
- kruse@cern.ch | "Let the good times roll!"
- ------------------------------------------------------------
-